import { store } from '../index'
import { defineStore } from 'pinia'

interface careerVO {
  career: object[]
}

export const useCareerStore = defineStore('career', {
  state: (): careerVO => ({
    career
  }),
  getters: {
    getCareer(): object[] {
      return this.career
    }
  }
})

const career = [
  {
    text: '销售',
    value: 1,
    children: [
      {
        text: '销售总监',
        value: '1_1'
      },
      {
        text: '销售经理',
        value: '1_2'
      },
      {
        text: '销售主管',
        value: '1_3'
      },
      {
        text: '销售专员',
        value: '1_4'
      },
      {
        text: '渠道/分销管理',
        value: '1_5'
      },
      {
        text: '渠道/分销专员',
        value: '1_6'
      },
      {
        text: '经销商',
        value: '1_7'
      },
      {
        text: '客户经理',
        value: '1_8'
      },
      {
        text: '客户代表',
        value: '1_9'
      },
      {
        text: '销售',
        value: '1_10'
      }
    ]
  },
  {
    text: '客户服务',
    value: 2,
    children: [
      {
        text: '客服经理',
        value: '2_1'
      },
      {
        text: '客服主管',
        value: '2_2'
      },
      {
        text: '客服专员',
        value: '2_3'
      },
      {
        text: '客服协调',
        value: '2_4'
      },
      {
        text: '客服技术支持',
        value: '2_5'
      },
      {
        text: '客户服务',
        value: '2_6'
      }
    ]
  },
  {
    text: '计算机/互联网',
    value: 3,
    children: [
      {
        text: 'IT技术总监',
        value: '3_1'
      },
      {
        text: 'IT技术经理',
        value: '3_2'
      },
      {
        text: 'IT工程师',
        value: '3_3'
      },
      {
        text: '系统管理员',
        value: '3_4'
      },
      {
        text: '测试专员',
        value: '3_5'
      },
      {
        text: '运营管理',
        value: '3_6'
      },
      {
        text: '网页设计',
        value: '3_7'
      },
      {
        text: '网站编辑',
        value: '3_8'
      },
      {
        text: '网站产品经理',
        value: '3_9'
      },
      {
        text: '计算机/互联网',
        value: '3_10'
      }
    ]
  },
  {
    text: '通信/电子',
    value: 4,
    children: [
      {
        text: '通信技术',
        value: '4_1'
      },
      {
        text: '电子技术',
        value: '4_2'
      },
      {
        text: '通信/电子',
        value: '4_3'
      }
    ]
  },
  {
    text: '生产/制造',
    value: 5,
    children: [
      {
        text: '工程师',
        value: '5_1'
      },
      {
        text: '项目主管',
        value: '5_2'
      },
      {
        text: '营运经理',
        value: '5_3'
      },
      {
        text: '营运主管',
        value: '5_4'
      },
      {
        text: '车间主任',
        value: '5_5'
      },
      {
        text: '物料管理',
        value: '5_6'
      },
      {
        text: '生产领班',
        value: '5_7'
      },
      {
        text: '操作工人',
        value: '5_8'
      },
      {
        text: '安全管理',
        value: '5_9'
      },
      {
        text: '生产/制造',
        value: '5_10'
      }
    ]
  },
  {
    text: '物流/仓储',
    value: 6,
    children: [
      {
        text: '物流经理',
        value: '6_1'
      },
      {
        text: '物流主管',
        value: '6_2'
      },
      {
        text: '物流专员',
        value: '6_3'
      },
      {
        text: '仓库经理',
        value: '6_4'
      },
      {
        text: '仓库管理员',
        value: '6_5'
      },
      {
        text: '货运代理',
        value: '6_6'
      },
      {
        text: '集装箱业务',
        value: '6_7'
      },
      {
        text: '海关事务管理',
        value: '6_8'
      },
      {
        text: '报单员',
        value: '6_9'
      },
      {
        text: '快递员',
        value: '6_10'
      },
      {
        text: '物流/仓储',
        value: '6_11'
      }
    ]
  },
  {
    text: '商贸/采购',
    value: 7,
    children: [
      {
        text: '商务经理',
        value: '7_1'
      },
      {
        text: '商务专员',
        value: '7_2'
      },
      {
        text: '采购经理',
        value: '7_3'
      },
      {
        text: '采购专员',
        value: '7_4'
      },
      {
        text: '外贸经理',
        value: '7_5'
      },
      {
        text: '外贸专员',
        value: '7_6'
      },
      {
        text: '业务跟单',
        value: '7_7'
      },
      {
        text: '报关员',
        value: '7_8'
      },
      {
        text: '商贸/采购',
        value: '7_9'
      }
    ]
  },
  {
    text: '人事/行政',
    value: 8,
    children: [
      {
        text: '人事总监',
        value: '8_1'
      },
      {
        text: '人事经理',
        value: '8_2'
      },
      {
        text: '人事主管',
        value: '8_3'
      },
      {
        text: '人事专员',
        value: '8_4'
      },
      {
        text: '招聘经理',
        value: '8_5'
      },
      {
        text: '招聘专员',
        value: '8_6'
      },
      {
        text: '培训经理',
        value: '8_7'
      },
      {
        text: '培训专员',
        value: '8_8'
      },
      {
        text: '秘书',
        value: '8_9'
      },
      {
        text: '文员',
        value: '8_10'
      },
      {
        text: '后勤',
        value: '8_11'
      },
      {
        text: '人事/行政',
        value: '8_12'
      }
    ]
  },
  {
    text: '高级管理',
    value: 9,
    children: [
      {
        text: '总经理',
        value: '9_1'
      },
      {
        text: '副总经理',
        value: '9_2'
      },
      {
        text: '合伙人',
        value: '9_3'
      },
      {
        text: '总监',
        value: '9_4'
      },
      {
        text: '经理',
        value: '9_5'
      },
      {
        text: '总裁助理',
        value: '9_6'
      },
      {
        text: '高级管理',
        value: '9_7'
      }
    ]
  },
  {
    text: '广告/市场',
    value: 10,
    children: [
      {
        text: '广告客户经理',
        value: '10_1'
      },
      {
        text: '广告客户专员',
        value: '10_2'
      },
      {
        text: '广告设计经理',
        value: '10_3'
      },
      {
        text: '广告设计专员',
        value: '10_4'
      },
      {
        text: '广告策划',
        value: '10_5'
      },
      {
        text: '市场营销经理',
        value: '10_6'
      },
      {
        text: '市场营销专员',
        value: '10_7'
      },
      {
        text: '市场策划',
        value: '10_8'
      },
      {
        text: '市场调研与分析',
        value: '10_9'
      },
      {
        text: '市场拓展',
        value: '10_10'
      },
      {
        text: '公关经理',
        value: '10_11'
      },
      {
        text: '公关专员',
        value: '10_12'
      },
      {
        text: '媒介经理',
        value: '10_13'
      },
      {
        text: '媒介专员',
        value: '10_14'
      },
      {
        text: '品牌经理',
        value: '10_15'
      },
      {
        text: '品牌专员',
        value: '10_16'
      },
      {
        text: '广告/市场',
        value: '10_17'
      }
    ]
  },
  {
    text: '传媒/艺术',
    value: 11,
    children: [
      {
        text: '主编',
        value: '11_1'
      },
      {
        text: '编辑',
        value: '11_2'
      },
      {
        text: '作家',
        value: '11_3'
      },
      {
        text: '撰稿人',
        value: '11_4'
      },
      {
        text: '文案策划',
        value: '11_5'
      },
      {
        text: '出版发行',
        value: '11_6'
      },
      {
        text: '导演',
        value: '11_7'
      },
      {
        text: '记者',
        value: '11_8'
      },
      {
        text: '主持人',
        value: '11_9'
      },
      {
        text: '演员',
        value: '11_10'
      },
      {
        text: '模特',
        value: '11_11'
      },
      {
        text: '经纪人',
        value: '11_12'
      },
      {
        text: '摄影师',
        value: '11_13'
      },
      {
        text: '影视后期制作',
        value: '11_14'
      },
      {
        text: '设计师',
        value: '11_15'
      },
      {
        text: '画家',
        value: '11_16'
      },
      {
        text: '音乐家',
        value: '11_17'
      },
      {
        text: '舞蹈',
        value: '11_18'
      },
      {
        text: '传媒/艺术',
        value: '11_19'
      }
    ]
  },
  {
    text: '生物/制药',
    value: 12,
    children: [
      {
        text: '生物工程',
        value: '12_1'
      },
      {
        text: '药品生产',
        value: '12_2'
      },
      {
        text: '临床研究',
        value: '12_3'
      },
      {
        text: '医疗器械',
        value: '12_4'
      },
      {
        text: '化工工程师',
        value: '12_5'
      },
      {
        text: '生物/制药',
        value: '12_6'
      }
    ]
  },
  {
    text: '医疗/护理',
    value: 13,
    children: [
      {
        text: '医疗管理',
        value: '13_1'
      },
      {
        text: '医生',
        value: '13_2'
      },
      {
        text: '心理医生',
        value: '13_3'
      },
      {
        text: '药剂师',
        value: '13_4'
      },
      {
        text: '护士',
        value: '13_5'
      },
      {
        text: '兽医',
        value: '13_6'
      },
      {
        text: '医疗/护理',
        value: '13_7'
      }
    ]
  },
  {
    text: '金融/银行/保险',
    value: 14,
    children: [
      {
        text: '投资',
        value: '14_1'
      },
      {
        text: '保险',
        value: '14_2'
      },
      {
        text: '金融',
        value: '14_3'
      },
      {
        text: '银行',
        value: '14_4'
      },
      {
        text: '证券',
        value: '14_5'
      },
      {
        text: '金融/银行/保险',
        value: '14_6'
      }
    ]
  },
  {
    text: '建筑/房地产',
    value: 15,
    children: [
      {
        text: '建筑师',
        value: '15_1'
      },
      {
        text: '工程师',
        value: '15_2'
      },
      {
        text: '规划师',
        value: '15_3'
      },
      {
        text: '景观设计',
        value: '15_4'
      },
      {
        text: '房地产策划',
        value: '15_5'
      },
      {
        text: '房地产交易',
        value: '15_6'
      },
      {
        text: '物业管理',
        value: '15_7'
      },
      {
        text: '建筑/房地产',
        value: '15_8'
      }
    ]
  },
  {
    text: '咨询/顾问',
    value: 16,
    children: [
      {
        text: '专业顾问',
        value: '16_1'
      },
      {
        text: '咨询经理',
        value: '16_2'
      },
      {
        text: '咨询师',
        value: '16_3'
      },
      {
        text: '培训师',
        value: '16_4'
      },
      {
        text: '咨询/顾问',
        value: '16_5'
      }
    ]
  },
  {
    text: '法律',
    value: 17,
    children: [
      {
        text: '律师',
        value: '17_1'
      },
      {
        text: '律师助理',
        value: '17_2'
      },
      {
        text: '法务经理',
        value: '17_3'
      },
      {
        text: '法务专员',
        value: '17_4'
      },
      {
        text: '知识产权专员',
        value: '17_5'
      },
      {
        text: '法律',
        value: '17_6'
      }
    ]
  },
  {
    text: '财会/审计',
    value: 18,
    children: [
      {
        text: '财务总监',
        value: '18_1'
      },
      {
        text: '财务经理',
        value: '18_2'
      },
      {
        text: '财务主管',
        value: '18_3'
      },
      {
        text: '会计',
        value: '18_4'
      },
      {
        text: '注册会计师',
        value: '18_5'
      },
      {
        text: '审计师',
        value: '18_6'
      },
      {
        text: '税务经理',
        value: '18_7'
      },
      {
        text: '税务专员',
        value: '18_8'
      },
      {
        text: '成本经理',
        value: '18_9'
      },
      {
        text: '财会/审计',
        value: '18_10'
      }
    ]
  },
  {
    text: '教育/科研',
    value: 19,
    children: [
      {
        text: '教授',
        value: '19_1'
      },
      {
        text: '讲师/助教',
        value: '19_2'
      },
      {
        text: '中学教师',
        value: '19_3'
      },
      {
        text: '小学教师',
        value: '19_4'
      },
      {
        text: '幼师',
        value: '19_5'
      },
      {
        text: '教务管理人员',
        value: '19_6'
      },
      {
        text: '职业技术教师',
        value: '19_7'
      },
      {
        text: '培训师',
        value: '19_8'
      },
      {
        text: '科研管理人员',
        value: '19_9'
      },
      {
        text: '科研人员',
        value: '19_10'
      },
      {
        text: '教育/科研',
        value: '19_11'
      }
    ]
  },
  {
    text: '服务业',
    value: 20,
    children: [
      {
        text: '餐饮管理',
        value: '20_1'
      },
      {
        text: '厨师',
        value: '20_2'
      },
      {
        text: '餐厅服务员',
        value: '20_3'
      },
      {
        text: '酒店管理',
        value: '20_4'
      },
      {
        text: '大堂经理',
        value: '20_5'
      },
      {
        text: '酒店服务员',
        value: '20_6'
      },
      {
        text: '导游',
        value: '20_7'
      },
      {
        text: '美容师',
        value: '20_8'
      },
      {
        text: '健身教练',
        value: '20_9'
      },
      {
        text: '商场经理',
        value: '20_10'
      },
      {
        text: '零售店店长',
        value: '20_11'
      },
      {
        text: '店员',
        value: '20_12'
      },
      {
        text: '保安经理',
        value: '20_13'
      },
      {
        text: '保安人员',
        value: '20_14'
      },
      {
        text: '家政服务',
        value: '20_15'
      },
      {
        text: '服务业',
        value: '20_16'
      }
    ]
  },
  {
    text: '交通运输',
    value: 21,
    children: [
      {
        text: '飞行员',
        value: '21_1'
      },
      {
        text: '空乘人员',
        value: '21_2'
      },
      {
        text: '地勤人员',
        value: '21_3'
      },
      {
        text: '列车司机',
        value: '21_4'
      },
      {
        text: '乘务员',
        value: '21_5'
      },
      {
        text: '船长',
        value: '21_6'
      },
      {
        text: '船员',
        value: '21_7'
      },
      {
        text: '司机',
        value: '21_8'
      },
      {
        text: '交通运输',
        value: '21_9'
      }
    ]
  },
  {
    text: '政府机构',
    value: 22,
    children: [
      {
        text: '公务员',
        value: '22_1'
      }
    ]
  },
  {
    text: '农林牧渔',
    value: 23,
    children: [
      {
        text: '农林牧渔',
        value: '23_1'
      }
    ]
  },
  {
    text: '自由职业',
    value: 24,
    children: [
      {
        text: '自由职业',
        value: '24_1'
      }
    ]
  },
  {
    text: '在校学生',
    value: 25,
    children: [
      {
        text: '在校学生',
        value: '25_1'
      }
    ]
  },
  {
    text: '待业',
    value: 26,
    children: [
      {
        text: '待业',
        value: '26_1'
      }
    ]
  },
  {
    text: '其他职业',
    value: 27,
    children: [
      {
        text: '其他职业',
        value: '27_1'
      }
    ]
  }
]

export const useCareerStoreWithOut = () => {
  return useCareerStore(store)
}
